package com.beyond.action;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.context.ApplicationContext;

import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	protected ApplicationContext ctx;
	
	@PostConstruct
	public abstract void initAction() throws Exception;

	public void setCtx(ApplicationContext ctx) {
		this.ctx = ctx;
	}
	
	@PreDestroy
	public abstract void destory() throws Exception;
}
